package top.infopub.mgr.bpa.dao;

import com.github.pagehelper.Page;
import top.infopub.generic.GenericDao;
import top.infopub.mgr.bpa.domain.DeviceSureDomain;
import top.infopub.mgr.bpa.domain.PackageSureDomain;
import top.infopub.mgr.bpa.vo.PackageSureVo;
import top.infopub.model.bpa.PackageSure;

/**
 * Created by wurz on 2021/6/11.
 */
public interface PackageSureDao extends GenericDao<PackageSure, String> {

    /**
     * 根据条件查询分页数据
     * @param packageSureVo
     * @return
     * @see
     */
    Page<PackageSureDomain> selectByDomainWhere(PackageSureVo packageSureVo);

    /**
     * 根据条件查询-我审批的分页数据
     * @param packageSureVo
     * @return
     * @see
     */
    Page<PackageSureDomain> selectMyCheckByDomainWhere(PackageSureVo packageSureVo);

    /**
     * 插入记录（自带id）
     * @param packageSure
     * @see
     */
    void insertById(PackageSureVo packageSure);
    void insertSelective(PackageSureVo packageSure);

    /**
     * 根据id查询详情
     * @param id 主键id
     * @return
     * @see
     */
    PackageSureVo queryById(String id);

    void updateByIdSelective(PackageSureVo packageSureVo);

}
